package com.woniuxy02;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-09-01 15:24
 */
public class Test02 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        MyUtil  myUtil = new MyUtil();
//        int x=1,y=2;
//        System.out.println("main:调用前:x="+x+",y="+y);
//        myUtil.swap(x,y);
//        System.out.println("main:调用后:x="+x+",y="+y);

        int x=100;
        System.out.println("调用前:x="+x);
        myUtil.testInt(x);
        System.out.println("调用后:x="+x);

        int[] a = new int[10];
        System.out.println("调用前:a="+ Arrays.toString(a));
        myUtil.testArrays02(a);
        System.out.println("调用后:a="+ Arrays.toString(a));
    }
}
